# @author zfd
# @date 2022年12月13日 15:20
# @desc with 自动关闭资源

with open('a.txt', 'r') as f:
    # 跳过
    f.seek(2)
    print(f.read())

# with  读取并写入
with open('logo.png', 'rb') as src:
    with open('logo2.png', 'wb') as dst:
        dst.write(src.read())
